<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */

/**
 * Service for the shift templates
 *
 * @category RedCross
 * @package Core_Service
 */
class Core_Service_ShiftTemplate extends RedCross_Service_ServiceAbstract
{
	public function __construct(Core_Gateway_ShiftTemplate $gateway)
	{
		parent::__construct($gateway, 'Core_Model_ShiftTemplate');
	}

	public function fetchAll()
	{
		$templates = $this->_gateway->fetchAll();
		return $templates;

	}

	public function fetchAllWithOnlyIdAndName()
	{
		return $this->getGateway()->fetchAllWithOnlyIdAndName();
	}

}